package top.mh.mybatis.sqlsession;

import java.util.List;

/**
 * @author mh
 * @version 1.0
 * @description
 * @since 2024/2/2 15:31
 */
public interface SqlSession {
    <T> T selectOne(String statementId, Object param) throws Exception;

    <T> List<T> selectList(String statementId, Object param) throws Exception;

    // 释放资源
    void close();

    /**
     * 生成代理对象
     */
    <T> T getMapper(Class<?> mapperClass);
}
